package com.lds.config.center.server.business.namespace.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lds.config.center.server.business.namespace.entity.Namespace;
import org.apache.ibatis.annotations.Select;

/**
 * Mapper 接口
 *
 * @author lidongsheng
 * @since 2025-06-26
 */
public interface NamespaceMapper extends BaseMapper<Namespace> {

    @Select("select id from namespace where app_id = #{appId} and name = #{name}")
    Long getNamespaceIdByAppIdAndName(Long appId, String name);
}

